
/*  SPADE  = 0;       A,K,Q,J,T,9,8,7,6,5,4,3,2 - Figures!
	CLUB   = 1;
    HEART  = 2;
    DIAMOND = 3;
*/


public class Card {
	private String Colour;       //variable to represent card colour
	private int Value;           //variable to represent card Power
	private char Figure;         //card figure(A,K,Q,J,T)
	
	
	//-----------CLASS_CONSTRUCTOR----------//
	public Card (int c,int V){         //we inicialize card properties
		String C;    
		
		if(c == 0)
			C="SPADE";
		else if(c == 1)
			C="CLUB";
		else if(c == 2)
			C="HEART";
		else
			C="DIAMOND";
		
		this.Colour = C;
		this.Value = V;
		this.Figure = Figure(Value).charAt(0);
	}
	
	
	//------MethodsForReturning_Card_Properties--------//
	public String CardColour(){
		return Colour;
	}
	
	public int CardValue(){
		return Value;
	}
	
	public char CardFigure(){
		return Figure;
	}
	
	public static String Figure(int V){
		if(V>=2 && V<10)
			return Integer.toString(V);
		else if(V==1)
			return "A";
		else if(V==10)
			return "T";
		else if(V==11)
			return "J";
		else if(V==12)
			return "Q";
		else 
			return "K";
	}
	
}
